<?php
namespace App\Tools\Traits;

use Illuminate\Support\Arr;

trait HasTypeTrait
{
    public function getTypeCN()
    {
        return $this->type ? Arr::get(self::TYPE_MAP, $this->type) : null;
    }
}
